package ws

import "github.com/gorilla/websocket"

type Wsconn struct {
	Conn     *websocket.Conn
	Appid    string
	Now      int64
	Avatar   string
	Nickname string
	ToUserID int
	Type     string
	UID      string
	UserId   int
}

type ClientUser struct {
	Avatar   string `json:"avatar"`
	Nickname string `json:"nickname"`
	ToUserID int    `json:"to_user_id"`
	Type     string `json:"type"`
	UID      string `json:"uid"`
}

type PingInfo struct {
	Appid    string `json:"appid"`
	Fd       int    `json:"fd"`
	IsOpen   int    `json:"is_open"`
	ToUserID int    `json:"to_user_id"`
	Tourist  int    `json:"tourist"`
	Type     string `json:"type"`
	UserId   int    `json:"user_id"`
}

type PingData struct {
	Now  int64    `json:"now"`
	Info PingInfo `json:"info"`
}
